package com.anhry.app.safety.manage.system.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbUserView entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_USER_VIEW")
public class TbUserView implements java.io.Serializable {

	// Fields

	private Long id;
	private String userName;
	private String userRealName;
	private String userSex;
	private String userPwd;
	private Date userLoginTime;
	private Long userLoginCount;
	private String userLoginIp;
	private String userPhone;
	private String userEmail;
	private Date userAddTime;
	private Date userDeleTime;
	private String userZw;
	private String isLock;
	private Long gradeId;
	private String gradeName;
	private Long roleId;
	private String roleName;
	private Long unitId;
	private String unitName;
	private Long deptId;
	private String deptName;
	private Long streetId;
	private String streetName;

	// Constructors

	/** default constructor */
	public TbUserView() {
	}

	/** full constructor */
	public TbUserView(Long id, String userName, String userRealName,
			String userSex, String userPwd, Date userLoginTime,
			Long userLoginCount, String userLoginIp, String userPhone,
			String userEmail, Date userAddTime, Date userDeleTime,
			String userZw, Long gradeId, String gradeName, Long roleId,
			String roleName, Long unitId, String unitName, Long deptId,
			String deptName) {
		this.id = id;
		this.userName = userName;
		this.userRealName = userRealName;
		this.userSex = userSex;
		this.userPwd = userPwd;
		this.userLoginTime = userLoginTime;
		this.userLoginCount = userLoginCount;
		this.userLoginIp = userLoginIp;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userAddTime = userAddTime;
		this.userDeleTime = userDeleTime;
		this.userZw = userZw;
		this.gradeId = gradeId;
		this.gradeName = gradeName;
		this.roleId = roleId;
		this.roleName = roleName;
		this.unitId = unitId;
		this.unitName = unitName;
		this.deptId = deptId;
		this.deptName = deptName;
	}

	// Property accessors
	@Id
	@Column(name = "ID", precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "USER_NAME", length = 100)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "USER_REAL_NAME", length = 100)
	public String getUserRealName() {
		return this.userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	@Column(name = "USER_SEX", length = 1)
	public String getUserSex() {
		return this.userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	@Column(name = "USER_PWD", length = 56)
	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "USER_LOGIN_TIME", length = 7)
	public Date getUserLoginTime() {
		return this.userLoginTime;
	}

	public void setUserLoginTime(Date userLoginTime) {
		this.userLoginTime = userLoginTime;
	}

	@Column(name = "USER_LOGIN_COUNT", precision = 11, scale = 0)
	public Long getUserLoginCount() {
		return this.userLoginCount;
	}

	public void setUserLoginCount(Long userLoginCount) {
		this.userLoginCount = userLoginCount;
	}

	@Column(name = "USER_LOGIN_IP", length = 32)
	public String getUserLoginIp() {
		return this.userLoginIp;
	}

	public void setUserLoginIp(String userLoginIp) {
		this.userLoginIp = userLoginIp;
	}

	@Column(name = "USER_PHONE", length = 32)
	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	@Column(name = "USER_EMAIL", length = 32)
	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "USER_ADD_TIME", length = 7)
	public Date getUserAddTime() {
		return this.userAddTime;
	}

	public void setUserAddTime(Date userAddTime) {
		this.userAddTime = userAddTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "USER_DELE_TIME", length = 7)
	public Date getUserDeleTime() {
		return this.userDeleTime;
	}

	public void setUserDeleTime(Date userDeleTime) {
		this.userDeleTime = userDeleTime;
	}

	@Column(name = "USER_ZW", length = 32)
	public String getUserZw() {
		return this.userZw;
	}

	public void setUserZw(String userZw) {
		this.userZw = userZw;
	}

	@Column(name = "GRADE_ID", scale = 0)
	public Long getGradeId() {
		return this.gradeId;
	}

	public void setGradeId(Long gradeId) {
		this.gradeId = gradeId;
	}

	@Column(name = "GRADE_NAME", length = 128)
	public String getGradeName() {
		return this.gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	@Column(name = "ROLE_ID", precision = 11, scale = 0)
	public Long getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	@Column(name = "ROLE_NAME", length = 100)
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Column(name = "UNIT_ID", scale = 0)
	public Long getUnitId() {
		return this.unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	@Column(name = "UNIT_NAME")
	public String getUnitName() {
		return this.unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	@Column(name = "DEPT_ID", scale = 0)
	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	@Column(name = "DEPT_NAME")
	public String getDeptName() {
		return this.deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	
	@Column(name = "STREET_ID", scale = 0)
	public Long getStreetId() {
		return this.streetId;
	}
	
	public void setStreetId(Long streetId) {
		this.streetId = streetId;
	}
	
	@Column(name = "STREET_NAME")
	public String getStreetName() {
		return this.streetName;
	}
	
	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}
	@Column(name = "IS_LOCK")
	public String getIsLock() {
		return isLock;
	}

	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}

}